const  service = require("./index.service")
const {send} = require("@common/utils")

class Controller {
  async selectUserInfo(ctx,next) {
    const {id} = ctx.user
    let result = await service.selectUserInfo(id)
    send(ctx,200,'200','用户信息查询成功',result)
  }

  async selectUserMenu(ctx,next){
    const data = [
      {id:1,name:'用户管理'},
      {id:2,name:'菜单管理'},
      {id:3,name:'订单管理'}
    ]
    send(ctx,200,'200','菜单查询成功',data)

  }
}


module.exports = new Controller()